package com.lucher.mes.dao;

import java.util.List;

import com.lucher.mes.po.Rollcallinfo;
import com.lucher.mes.po.Toolinout;
import org.apache.ibatis.annotations.Param;

public interface ToolinoutMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Toolinout record);

    int insertSelective(Toolinout record);

    Toolinout selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Toolinout record);

    int updateByPrimaryKey(Toolinout record);
    
    //自定义接口
    List<Toolinout> findByList(Toolinout record);
    List<Toolinout> findByListForPage(Toolinout record);
    int findByCount(Toolinout record);
    //查询借用的记录，根据工具编号和借用数量
    Toolinout findUnreturnByToolcodeAndInoutamount(Toolinout record);


    //根据工具编号修改记录信息
   void updateToolInfoByCode  (@Param("toolCode")String toolCode, @Param("toolName")String toolName);

}